//
//  HXGroupListTableViewCell.m
//  KD
//
//  Created by GaoFei on 16/7/8.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXGroupListTableViewCell.h"

#import "HXIflyAllGroupPeopleViewController.h"//群成员

@implementation HXGroupListTableViewCell

-(void)setData:(HXGetJoinGroupListModel *)data {
    
    _data = data;
    
    self.groupNameLabel.text = data.GroupName;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    //设置群图片为圆角
//    self.groupImgView.layer.cornerRadius = 8.f;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

/**
 跳转到 全体成员列表
 */
- (IBAction)allGroupPeopleBtnAct:(UIButton *)sender {

    HXIflyAllGroupPeopleViewController * allGroupVc = [[HXIflyAllGroupPeopleViewController alloc] initWithTitleName:self.groupNameLabel.text withGroupsId:self.data.GroupID];
    
    [self.viewController.navigationController pushViewController:allGroupVc animated:YES];
    
}


@end
